Trò chơi điện tử trong C # với phiên bản mới
1 namespace pong
2 {
3 partial class Form1
4 {
5 /// <summary>
6 /// Required designer variable.
7 /// </summary>
8 private System.ComponentModel.IContainer components = null;
9
10 /// <summary>
11 /// Clean up any resources being used.
12 /// </summary>
13 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
14 protected override void Dispose(bool disposing)
15 {
16 if (disposing && (components != null))
17 {
18 components.Dispose();
19 }
20 base.Dispose(disposing);
21 }
22
23 #region Windows Form Designer generated code
24
25 /// <summary>
26 /// Required method for Designer support - do not modify
27 /// the contents of this method with the code editor.
28 /// </summary>
29 private void InitializeComponent()
30 {
31 this.components = new System.ComponentModel.Container();
32 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
33 this.timer1 = new System.Windows.Forms.Timer(this.components);
34 this.points1 = new System.Windows.Forms.Label();
35 this.points2 = new System.Windows.Forms.Label();
36 this.pause_txt = new System.Windows.Forms.Label();
37 this.paddle = new System.Windows.Forms.PictureBox();
38 this.paddle2 = new System.Windows.Forms.PictureBox();
39 this.ball = new System.Windows.Forms.PictureBox();
40 ((System.ComponentModel.ISupportInitialize)(this.paddle)).BeginInit();
41 ((System.ComponentModel.ISupportInitialize)(this.paddle2)).BeginInit();
42 ((System.ComponentModel.ISupportInitialize)(this.ball)).BeginInit();
43 this.SuspendLayout();
44 //
45 // timer1
46 //
47 this.timer1.Enabled = true;
48 this.timer1.Interval = 10;
49 this.timer1.Tick += new System.EventHandler(this.moveBall);
50 //
51 // points1
52 //
53 this.points1.AutoSize = true;
54 this.points1.ForeColor = System.Drawing.Color.White;
55 this.points1.Location = new System.Drawing.Point(2, 5);
56 this.points1.Name = "points1";
57 this.points1.Size = new System.Drawing.Size(48, 13);
58 this.points1.TabIndex = 3;
59 this.points1.Text = "Player: 0";
60 //
61 // points2
62 //
63 this.points2.AutoSize = true;
64 this.points2.ForeColor = System.Drawing.Color.White;
65 this.points2.Location = new System.Drawing.Point(2, 22);
66 this.points2.Name = "points2";
67 this.points2.Size = new System.Drawing.Size(41, 13);
68 this.points2.TabIndex = 4;
69 this.points2.Text = "CPU: 0";
70 //
71 // pause_txt
72 //
73 this.pause_txt.AutoSize = true;
74 this.pause_txt.ForeColor = System.Drawing.Color.White;
75 this.pause_txt.Location = new System.Drawing.Point(120, 115);
76 this.pause_txt.Name = "pause_txt";
77 this.pause_txt.Size = new System.Drawing.Size(43, 13);
78 this.pause_txt.TabIndex = 5;
79 this.pause_txt.Text = "Paused";
80 //
81 // paddle
82 //
83 this.paddle.Image = ((System.Drawing.Image)(resources.GetObject("paddle.Image")));
84 this.paddle.Location = new System.Drawing.Point(99, 231);
85 this.paddle.Name = "paddle";
86 this.paddle.Size = new System.Drawing.Size(75, 23);
87 this.paddle.TabIndex = 6;
88 this.paddle.TabStop = false;
89 //
90 // paddle2
91 //
92 this.paddle2.Image = ((System.Drawing.Image)(resources.GetObject("paddle2.Image")));
93 this.paddle2.Location = new System.Drawing.Point(91, 16);
94 this.paddle2.Name = "paddle2";
95 this.paddle2.Size = new System.Drawing.Size(75, 23);
96 this.paddle2.TabIndex = 7;
97 this.paddle2.TabStop = false;
98 //
99 // ball
100 //
101 this.ball.Image = ((System.Drawing.Image)(resources.GetObject("ball.Image")));
102 this.ball.Location = new System.Drawing.Point(124, 105);
103 this.ball.Name = "ball";
104 this.ball.Size = new System.Drawing.Size(23, 23);
105 this.ball.TabIndex = 8;
106 this.ball.TabStop = false;
107 //
108 // Form1
109 //
110 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
111 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
112 this.BackColor = System.Drawing.Color.Black;
113 this.ClientSize = new System.Drawing.Size(292, 266);
114 this.Controls.Add(this.paddle2);
115 this.Controls.Add(this.paddle);
116 this.Controls.Add(this.pause_txt);
117 this.Controls.Add(this.points2);
118 this.Controls.Add(this.points1);
119 this.Controls.Add(this.ball);
120 this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
121 this.KeyPreview = true;
122 this.Name = "Form1";
123 this.Text = "Pong #";
124 this.Click += new System.EventHandler(this.pause);
125 this.ResizeEnd += new System.EventHandler(this.movePaddles);
126 ((System.ComponentModel.ISupportInitialize)(this.paddle)).EndInit();
127 ((System.ComponentModel.ISupportInitialize)(this.paddle2)).EndInit();
128 ((System.ComponentModel.ISupportInitialize)(this.ball)).EndInit();
129 this.ResumeLayout(false);
130 this.PerformLayout();
131
132 }
133
134 #endregion
135
136 private System.Windows.Forms.Timer timer1;
137 private System.Windows.Forms.Label points1;
138 private System.Windows.Forms.Label points2;
139 private System.Windows.Forms.Label pause_txt;
140 private System.Windows.Forms.PictureBox paddle;
141 private System.Windows.Forms.PictureBox paddle2;
142 private System.Windows.Forms.PictureBox ball;
143 }
144 }